package com.dunqi.gpm.shunqing.home.activity;

import android.os.Bundle;

import com.dunqi.gpm.shunqing.R;
import com.dunqi.gpm.shunqing.common.base.BaseAct;
import com.dunqi.gpm.shunqing.home.fragment.KnotCommentFragment;

//结项评价
public class KnotListActivity extends BaseAct {

//    @BindView(R.id.tab_layout)
//    TabLayout tabLayout;
//    @BindView(R.id.view_pager)
//    ViewPager viewPager;
//    String[] titles = {"未结项", "已结项"};
//    ArrayList<Fragment> fragments = new ArrayList<>();

    @Override
    protected void refreshData(Bundle savedInstanceState) {

    }

    @Override
    protected void initUiAndListener() {
//        HashMap<String, String> map1 = new HashMap<>();
//        map1.put("audit_status", "4");
//        ProjectListFragment fragment1 = ProjectListFragment.newInstance(map1, ProjectDetailActivity.TYPE_COMMENT);
//        fragments.add(fragment1);
//
//        HashMap<String, String> map2 = new HashMap<>();
//        map2.put("audit_status", "4");
//        ProjectListFragment fragment2 = ProjectListFragment.newInstance(map2, ProjectDetailActivity.TYPE_COMMENT);
//        fragments.add(fragment2);
//        viewPager.setAdapter(new ViewPagerFragmentAdapter(getSupportFragmentManager(), fragments, titles));
//        tabLayout.setupWithViewPager(viewPager);


//        KnotFragment knotFragment = KnotCommentFragment.newInstance(new HashMap<String, String>(), ProjectDetailActivity.TYPE_COMMENT);
        getSupportFragmentManager().beginTransaction()
                .add(R.id.container, new KnotCommentFragment())
                .commit();

    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_knot_comment_list;
    }

}
